const json = require('./data.json');

const getUser = () => {
  //....
  return {
    name: "xiaoming",
    age: 20
  }
}


module.exports = () => {
  return {
    posts: json.posts,
    getUser: getUser()
  }
}